import {routerConfig, routerConfigItem} from '../util/interface';
import login from '../view/login'
import signIn from '../view/login/signIn'
import home from '../view/home'
import notFound from '../view/notFound'

import MeetingRoom from '../view/meeting'

const routerConfigs: routerConfigItem[] = [
    {
        path: '/login',
        name: '登录',
        component: login
    },
    {
        path: '/signIn',
        name: '注册',
        component: signIn
    },
    {
        path: '/',
        name: '主页',
        to: '/meetingRoom',
        component: home,
        children: [
            {
                path: '/meetingRoom',
                name: 'huiYi',
                component: MeetingRoom
            }
        ]
    },
    {
        path: '*',
        name: 'Not Found',
        component: notFound
    }
]
export default routerConfigs;